package com.sany.assess.entity.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author fenglf
 * @since 2020-12-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("EVA_SUPPLIER")
@ApiModel(value = "Supplier对象", description = "")
public class Supplier extends Model<Supplier> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "ID", type = IdType.ID_WORKER)
    private String id;

    @ApiModelProperty(value = "供应商编码")
    @TableField("SUPPLIER_CODE")
    private String supplierCode;

    @ApiModelProperty(value = "供应商名称")
    @TableField("SUPPLIER_NAME")
    private String supplierName;

    @ApiModelProperty(value = "联系人")
    @TableField("LINKMAN")
    private String linkman;

    @ApiModelProperty(value = "电话")
    @TableField("TEL")
    private String tel;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
